public class ChargeActivationModel extends Object implements XMLMarshallable
Java class represents a charge activation in a subscription (customer master data)
owned by a service provider; This data relates to the activation of charges in the subscribed offer.
Concepts and Terminology
A charge activation is an extensibility concept. The corresponding functional and business concept is the charge visible in a subscription.
A charge activation is contained in a SubscriptionModel and
managed using operations related to subscriptions.
Concepts and Terminology
A charge activation with a dependent role does not have any status.
Accesses are directly managed using the CreateAccessOp,
DeleteAccessOp and
ModifyAccessOp operations.
Behavior of a charge activation status:
neverActivated.active.active, next possible states are suspended,
cancelled, earlyCancelled and expired.suspended, next possible states are active,
cancelled, earlyCancelled and expired.cancelled, earlyCancelled and expired.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargeActivation">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="parameterSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="parameterSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="translationInstanceSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="translationInstanceSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="tierTableInstanceSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="tierTableInstanceSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="access" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="chargingMapping" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="subCode" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="currency" type="xs:string" use="optional"/>
<xs:attribute name="effectiveDate" type="xs:dateTime"/>
<xs:attribute name="expirationDate" type="xs:dateTime"/>
<xs:attribute name="lastActivationDate" type="xs:dateTime"/>
<xs:attribute name="cancellationDate" type="xs:dateTime"/>
<xs:attribute name="parentCode" type="xs:string"/>
<xs:attribute name="parentRef" type="xs:string"/>
<xs:attribute name="status" type="CAStatusType"/>
</xs:complexType>
</xs:element><xs:simpleType name="CAStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="neverActivated"/>
<xs:enumeration value="active"/>
<xs:enumeration value="suspended"/>
<xs:enumeration value="cancelled"/>
<xs:enumeration value="earlyCancelled"/>
<xs:enumeration value="expired"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
Numeric value for the status of a charge activation which is active.
|
static String |
ACTIVE_STR
String value for the status of a charge activation which is active.
|
static int |
CANCELLED
Numeric value for the status of a charge activation which is cancelled.
|
static String |
CANCELLED_STR
String value for the status of a charge activation which is cancelled.
|
static int |
EARLY_CANCELLED
Numeric value for the status of a charge activation which has been early cancelled.
|
static String |
EARLY_CANCELLED_STR
String value for the status of a charge activation which has been early cancelled.
|
static int |
EXPIRED
Numeric value for the status of a charge activation which is expired.
|
static String |
EXPIRED_STR
String value for the status of a charge activation which is expired.
|
static int |
NEVER_ACTIVATED
Numeric value for the status of a charge activation which has never been activated.
|
static String |
NEVER_ACTIVATED_STR
String value for the status of a charge activation which has never been activated.
|
static int |
NO_STATUS
Numeric value for the status of a charge activation with no status.
|
static int |
SUSPENDED
Numeric value for the status of a charge activation which is suspended.
|
static String |
SUSPENDED_STR
String value for the status of a charge activation which is suspended.
|
| Constructor and Description |
|---|
ChargeActivationModel()
Constructs an empty charge activation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String name,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
Vector<AccessModel> |
getAccesses()
Deprecated.
Deprecated since former Transactive 3.3
|
Date |
getCancellationDate()
Returns the cancellation date of this charge activation.
|
Vector<ChargingMappingModel> |
getChargingMappings()
Returns ths list of the associated charging mappings.
|
Vector<CounterModel> |
getCounters()
Returns the list of associated counters.
|
String |
getCurrencyCode()
Returns the currency code of this charge activation.
|
String |
getDescription()
Returns the description of this charge activation.
|
Date |
getEffectiveDate()
Returns the effective date of this charge activation.
|
Date |
getExpirationDate()
Returns the expiration date of this charge activation.
|
Date |
getLastActivationDate()
Returns the last activation date of this charge activation.
|
String |
getOfferCode()
Returns the main offer code of the parent charge.
|
ParameterSetModel |
getParameterSet()
Returns the parameter set model of this charge activation.
|
ChronologyModel |
getParameterSetChronology()
Returns the parameter set chronology of this charge activation.
|
String |
getParentCode()
Returns the parent code of this charge activation.
|
String |
getParentRef()
Returns the parent reference of this charge activation.
|
String |
getReference()
Returns the reference of this charge activation.
|
int |
getStatus()
Returns the status of the charge activation.
|
static String |
getStatusStringFromValue(int status) |
static int |
getStatusValueFromString(String statusString) |
String |
getSubCode()
Returns the subCode of this charge activation.
|
TierTableInstanceSetModel |
getTierTableInstanceSet()
Returns the tier table instance set of this charge activation.
|
ChronologyModel |
getTierTableInstanceSetChronology()
Returns the tier table instance set chronology of this charge activation.
|
TranslationInstanceSetModel |
getTranslationInstanceSet()
Returns the translation instance set of this charge activation.
|
ChronologyModel |
getTranslationInstanceSetChronology()
Returns the translation instance set chronology of this charge activation.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAccesses(Vector<AccessModel> accesses)
Deprecated.
Deprecated since former Transactive 3.3
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setCancellationDate(Date cancellationDate)
Sets the cancellation date of this charge activation.
|
void |
setChargingMappings(Vector<ChargingMappingModel> mappings)
Sets the list of charging mappings of this charge activation.
|
void |
setCurrencyCode(String currencyCode)
Sets the currency code of this charge activation.
|
void |
setDescription(String description)
Sets the description of this charge activation.
|
void |
setEffectiveDate(Date effectiveDate)
Sets the effective date of this charge activation.
|
void |
setExpirationDate(Date expirationDate)
Sets the expiration date of this charge activation.
|
void |
setLastActivationDate(Date lastActivationDate)
Sets the last activation date of this charge activation.
|
void |
setOfferCode(String offerCode)
Sets the main offer code of the parent charge.
|
void |
setParameterSet(ParameterSetModel parameterSet)
Sets the parameter set model of this charge activation.
|
void |
setParentCode(String parentCode)
Sets the parent code of this charge activation.
|
void |
setParentRef(String parentRef)
Sets the parent reference of this charge activation.
|
void |
setReference(String reference)
Sets the reference of this charge activation.
|
void |
setStatus(int status)
Sets the status for the charge activation;
Only the SAP CC system can update this information.
|
void |
setSubCode(String subCode)
Sets the subCode for this charge activation.
|
void |
setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
Sets the tier table instance set of this charge activation.
|
void |
setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
Sets the translation instance set of this charge activation.
|
public static final int NO_STATUS
public static final int NEVER_ACTIVATED
public static final int ACTIVE
public static final int SUSPENDED
public static final int CANCELLED
public static final int EARLY_CANCELLED
public static final int EXPIRED
public static final String NEVER_ACTIVATED_STR
public static final String ACTIVE_STR
public static final String SUSPENDED_STR
public static final String CANCELLED_STR
public static final String EARLY_CANCELLED_STR
public static final String EXPIRED_STR
public ChargeActivationModel()
public String getSubCode()
setSubCode(String)public void setSubCode(String subCode)
subCode - The sub-code of the charge activation.getSubCode()public String getReference()
setReference(String)public void setReference(String reference)
reference - The internal reference of this charge activation.getReference()public String getDescription()
setDescription(String)public void setDescription(String description)
description - The description of the charge activation.getDescription()public String getCurrencyCode()
null if it does not define a currency codesetCurrencyCode(String)public void setCurrencyCode(String currencyCode)
currencyCode - the currency code of this charge activation, or null if it does not define a currency codegetCurrencyCode()public Date getEffectiveDate()
setEffectiveDate(Date)public void setEffectiveDate(Date effectiveDate)
effectiveDate - The effective date of the charge activation.getEffectiveDate()public Date getExpirationDate()
setExpirationDate(Date)public void setExpirationDate(Date expirationDate)
expirationDate - The expiration date of the charge activation.getExpirationDate()public Date getLastActivationDate()
setLastActivationDate(Date)public void setLastActivationDate(Date lastActivationDate)
lastActivationDate - The last activation date of the charge activation.getLastActivationDate()public Date getCancellationDate()
setCancellationDate(Date)public void setCancellationDate(Date cancellationDate)
cancellationDate - The cancellation date of the charge activation.getCancellationDate()public Vector<CounterModel> getCounters()
CounterModel.public String getParentRef()
public void setParentRef(String parentRef)
parentRef - the parent reference of this charge activation.public String getParentCode()
public void setParentCode(String parentCode)
parentCode - the parent code of this charge activation.public String getOfferCode()
setOfferCode(String)public void setOfferCode(String offerCode)
offerCode - The code of the offer of the parent charge.getOfferCode()public ParameterSetModel getParameterSet()
public void setParameterSet(ParameterSetModel parameterSet)
parameterSet - the parameter set model of this charge activation.public TranslationInstanceSetModel getTranslationInstanceSet()
public void setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
translationInstanceSet - the translation instance set of this charge activation.public TierTableInstanceSetModel getTierTableInstanceSet()
public void setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
tierTableInstanceSet - the tier table instance set of this charge activation.public ChronologyModel getParameterSetChronology()
public ChronologyModel getTranslationInstanceSetChronology()
public ChronologyModel getTierTableInstanceSetChronology()
@Deprecated public Vector<AccessModel> getAccesses()
pnr.compatibility.r32.access is true in the server config file.AccessModel.@Deprecated public void setAccesses(Vector<AccessModel> accesses)
pnr.compatibility.r32.access is true in the server config file.accesses - the list of AccessModels to be setted.public Vector<ChargingMappingModel> getChargingMappings()
ChargingMappingModel.public void setChargingMappings(Vector<ChargingMappingModel> mappings)
mappings - The list of ChargingMappingModel to be settedpublic int getStatus()
The status may be:
setStatus(int)public void setStatus(int status)
status - The status of the charge activationgetStatus()public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String name, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic static String getStatusStringFromValue(int status)
public static int getStatusValueFromString(String statusString)